/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2022-10-12 09:36:02
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2022-10-12 09:36:25
 * @FilePath: /vue3-datav/src/api/template.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const getLeft1Data = () => {
    const data = [];
    for (let i = 0; i < 10; i++) {
        data.push({
            title: `title${i}`,
            content: `content${i}`,
            excute: `excute${i}`
        });
    }
    const res = {
        code: 200,
        data,
        message: 'success'
    };
    return Promise.resolve(res);
};

export const getLeft2Data = () => {
    const res = {
        code: 200,
        data: [
            {
                label: '块1',
                num: 100
            },
            {
                label: '块2',
                num: 20
            },
            {
                label: '块3',
                num: 3
            },
            {
                label: '块4',
                num: 55
            }
        ],
        message: 'success'
    };
    return Promise.resolve(res);
};
